package com.affablebeans.model.dal;

import java.sql.SQLException;
import java.util.List;

import com.affablebeans.model.entity.GenericEntity;

/**
 *
 * @author Bora SAYINER
 * @since Jan 25, 2015 6:34:35 PM
 * @version 1.0
 */
public interface GenericDAL<E extends GenericEntity> {

	public abstract boolean insert(E entity) throws SQLException;

	public abstract boolean update(E entity) throws SQLException;

	public abstract boolean delete(E entity) throws SQLException;

	public abstract E findById(int id) throws SQLException;

	public abstract List<E> getAll() throws SQLException;

}
